Skip to content

NET_SDK_EditSmartEventPoint

Interface Definition

1
2
3
4
5
6
7
BOOL NET_SDK_EditSmartEventPoint(
    LONG lUserID,
    DWORD dwCommand,
    LONG lChannel,
    const NET_DVR_IVE_POINT_T* points,
    size_t pCounts,
    TripwireDirection direction);
1
2
3
4
5
6
7
public static extern Boolean NET_SDK_EditSmartEventPoint(
    Int32 lUserID,
    UInt32 dwCommand,
    Int32 lChannel,
    ref NET_DVR_IVE_POINT_T points,
    UInt64 pCounts,
    TripwireDirection direction);

Function Description

Edit the regional coordinate points of smart events (currently only supports NVR).

Parameter Description

Parameters Type Remark
lUserIDin LONG User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx.
dwCommandin DWORD Smart event type.
lChannelin LONG Channel number, starting from 0. This parameter is invalid for IPC devices.
pointsin const NET_DVR_IVE_POINT_T* Enter your data.
pCountsin size_t Enter the size.
directionin TripwireDirection Cross-border direction.

Return Value

  • Type:BOOL

  • Remark:Returns TRUE if successful, FALSE if failed.

Remarks

Depending on the dwCommand, the corresponding lpInBuffer data structure is as follows:

dwCommand macro definition dwCommand corresponding value dwCommand meaning Data structure (lpInBuffer) definition
NET_SDK_SMART_EVENT_TYPE_PEA_TARGET 0x19 Perimeter defense, regional intrusion detection NET_SDK_IVE_COMMON_CFG + ruleCfgCount * NET_SDK_IVE_DETECT_RULE_CFG
NET_SDK_SMART_EVENT_TYPE_NVR_AOIENTRY 0x1e Enter zone for NVR NET_SDK_IVE_COMMON_CFG + ruleCfgCount * NET_SDK_IVE_DETECT_RULE_CFG
NET_SDK_SMART_EVENT_TYPE_NVR_AOILEAVE 0x1f Leaving zone for NVR NET_SDK_IVE_COMMON_CFG + ruleCfgCount * NET_SDK_IVE_DETECT_RULE_CFG
NET_SDK_SMART_EVENT_TYPE_TRIPWIRE 0x26 Perimeter prevention, cross-border detection NET_SDK_IVE_COMMON_CFG + ruleCfgCount * NET_SDK_IVE_DETECT_RULE_CFG
Error Code